KeXueYuanGuide={}
--KeXueYuanGuideFunc={}
--KeXueYuanGuideFunc.__index = KeXueYuanGuideFunc
--setmetatable(KeXueYuanGuide, KeXueYuanGuideFunc)
KeXueYuanGuide.state=-1
KeXueYuanGuide.showKeXueYuan = function(self)
  setTouchEnabledAll(MainScene.node, false)
  MainScene.addMask(1003)
  setTouchEnabledAll(MainScene.getBuilding(1003), true)
end
KeXueYuanGuide.upTech = function(self)
  setTouchEnabledAll(KeXueYuanScene.instance.node, false)
  TypeCast(KeXueYuanScene.instance.buttons[1], "CCButton"):setEnabled(true)
end 
KeXueYuanGuide.close = function(self)
  setTouchEnabledAll(KeXueYuanScene.instance.node, false)
  TypeCast(KeXueYuanScene.instance.node:getChildByTag(1111), "CCButton"):setEnabled(true)
end
KeXueYuanGuide.nextStep = function(self)
  print("KeXueYuanGuide.nextStep", KeXueYuanGuide.state)
  if KeXueYuanGuide.state==-1 then
    KeXueYuanGuide.showKeXueYuan()    
    KeXueYuanGuide.state=0
  elseif KeXueYuanGuide.state==0 then
    KeXueYuanGuide.upTech()
    KeXueYuanGuide.state=1
  elseif KeXueYuanGuide.state==1 then
    KeXueYuanGuide.close() 
    KeXueYuanGuide.state=2
  end
end
